<%= stylesheet_link_tag "basic_info" %>

<div id="notice" class="notice"><%= notice %></div>

<%= render "utils/basic_info_tabs" %>

<div class="right_btn_div">
  <%= link_to (t 'common.new'), new_motorcade_path, {:class => "inline-block s-btn"} %>
</div>

<table class="grid">
  <tr>
    <th><%= t 'activerecord.attributes.motorcade.name' %></th>
    <th><%= t 'activerecord.attributes.motorcade.code' %></th>
    <th><%= t 'activerecord.attributes.motorcade.address' %></th>
    <th><%= t 'activerecord.attributes.motorcade.phone' %></th>
    <th><%= t 'activerecord.attributes.motorcade.coordinate' %></th>
    <th></th>
  </tr>

<% @motorcades.each do |motorcade| %>
  <tr>
    <td class = "ellipsis" title = "<%= motorcade.name %>"><%= motorcade.name %></td>
    <td class = "ellipsis" title = "<%= motorcade.code %>"><%= motorcade.code %></td>
    <td class = "ellipsis" title = "<%= motorcade.address %>"><%= motorcade.address %></td>
    <td class = "ellipsis" title = "<%= motorcade.phone %>"><%= motorcade.phone %></td>
    <td class = "ellipsis" title = "<%= [motorcade.longitude,motorcade.latitude] %>"><%= [motorcade.longitude,motorcade.latitude] %></td>
    <td style="width: 150px;">
      <%= link_to (t 'common.show'), motorcade %>
      <%= link_to (t 'common.edit'), edit_motorcade_path(motorcade) %>
      <%= link_to (t 'common.destroy'), motorcade, confirm: (t 'common.confirm_destroy'), method: :delete %>
    </td>
  </tr>
<% end %>
</table>